<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<% 
	String appPath = request.getContextPath();
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Hello Admin</title>

<script type="text/javascript" src="<%=appPath%>/page/jslib/jQuery/jquery-1.7.2.min.js"></script>
<script type="text/javascript">
	var $j = jQuery.noConflict();
</script>
<script type='text/javascript' src='<%=appPath%>/page/js/iphone-style-checkboxes.js'></script> <!-- iphone like checkboxes -->

<link type="text/css" rel="stylesheet" href="<%=appPath%>/page/style.css" />
<link type="text/css" rel="stylesheet" href="<%=appPath%>/page/css/login.css" />
	

<script type='text/javascript'>
	$j(document).ready(function() {
		$j('.iphone').iphoneStyle();
	});
	
	function userNameOnBlur(obj) {
		if ($j(obj).val() == '') { 
			$j(obj).val('admin'); 
		}
	}
	
	function userNameOnClick(obj) {
		$j(obj).val('');
	}
	
	function pwdOnBlur(obj) {
		if ($j(obj).val() == '') { 
			$j(obj).val('123456');
		}
	}
	
	function pwdOnClick(obj) {
		$j(obj).val('');
	}
</script>

<!--[if IE 8]>
	<script type='text/javascript' src='js/excanvas.js'></script>
	<link rel="stylesheet" href="css/loginIEfix.css" type="text/css" media="screen" />
<![endif]--> 

<!--[if IE 7]>
	<script type='text/javascript' src='js/excanvas.js'></script>
	<link rel="stylesheet" href="css/loginIEfix.css" type="text/css" media="screen" />
<![endif]--> 

</head>
<body>
	<div id="line"><!-- --></div>
	<div id="background">
		<div id="container">
			<div id="logo">
				<img src="assets/logologin.png" alt="Logo" />
			</div>
			<div id="box"> 
				<s:form action="index.do" method="post"> 
					<div class="one_half">
						<p><input id="username" value="admin" class="field" onBlur="userNameOnBlur(this)" onClick="userNameOnClick(this)" /></p>
						<p><input type="checkbox" class="iphone" /><label class="fix">Remember me</label></p> 
					</div>
					<div class="one_half last">
						<p><input type="password" id="password" value="123456" class="field" onBlur="pwdOnBlur(this)" onClick="pwdOnClick(this)">	</p>
						<p><input type="submit" value="Login" class="login" /></p>
					</div>
				</s:form> 
			</div> 
		</div>
	</div>
</body>
</html>